package com.controller;


import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.service.ISubjectInfoService;
import com.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 专业定位科目信息 前端控制器
 * </p>
 *
 * @author astupidcoder
 * @since 2022-09-14
 */
@RestController
@RequestMapping("/subjectInfo")
public class SubjectInfoController{
    @Autowired
    private ISubjectInfoService subjectInfoService;

    @GetMapping("/getSubjectName")
    public R getSubjectName() {
        return R.ok(subjectInfoService.list());
    }
}
